import request from '@/utils/request.js'

/**
 * 获取首屏广告
 */
export function getAdvertising(params){
	return request({
		url:`/sns/openAdvert/getWxOpenAdvertByType?type=${params}`,
		method:'get'
	})
}

/***
 * 获取开屏广告
 */
export function getOpenVedioList(params){
	return request({
		url:`shopApi/videoPlay/thirdQuery`,
		method:'get',
    params
	})
}

/***
 * 获取开本视频详情
 */
 export function getOpenVedioDetail(params){
	return request({
		url:`shopApi/videoPlay/thirdGet`,
		method:'get',
    params
	})
}

/***
 * 获取展会评论列表
 */
 export function getExhibitComments(params){
	return request({
		url:`sns/exhibitComment/getExhibitComments`,
		method:'get',
    params
	})
}


/***
 * 保存展会评论
 */
 export function saveExhibitComments(data){
	return request({
		url:`sns/exhibitComment/save`,
		method:'post',
    data
	})
}

/**
 * 删除自己评论
 */
 export function delComment(data){
	return request({
		url:`sns/exhibitComment/delComment`,
		method:'delete',
    data
	})
}

/***
 * 获取视频评论
 */
 export function getVideoPlayComments(params){
	return request({
		url:`sns/videoPlayComment/getVideoPlayComments`,
		method:'get',
    params
	})
}

/***
 * 发送视频评论
 */
 export function saveComments(data){
	return request({
		url:`sns/videoPlayComment/save`,
		method:'post',
    data
	})
}

/***
 * 视频点赞
 */
 export function videoIsLike(data){
	return request({
		url:`shopApi/videoPlay/collection`,
		method:'post',
    data
	})
}

/**
 * 删除视频自己评论
 */
 export function delCommentvideo(data){
	return request({
		url:`sns/videoPlayComment/delComment`,
		method:'delete',
    data
	})
}

/***
 * 获取资讯评论
 */
 export function getInformationComments(params){
	return request({
		url:`sns/informationComment/getInformationComments`,
		method:'get',
    params
	})
}

/***
 * 发送视频评论
 */
 export function saveCommentsInfo(data){
	return request({
		url:`sns/informationComment/save`,
		method:'post',
    data
	})
}

/**
 * 删除自己评论
 */
 export function delCommentvideoInfo(data){
	return request({
		url:`sns/informationComment/delComment`,
		method:'delete',
    data
	})
}